.class Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;
.super Ljava/lang/Object;
.source "ImageSwitcherActivity.java"

# interfaces
.implements Lcom/netease/newsreader/util/BasePageViewAdapter$ViewBinderWithKey;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ImageSwitcherActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "LinearLayoutItem"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;


# direct methods
.method private constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 2295
    iput-object p1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 2295
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;-><init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)V

    return-void
.end method


# virtual methods
.method public setViewValue(Landroid/view/View;Ljava/lang/Object;Ljava/lang/String;)Z
    .locals 10
    .parameter "view"
    .parameter "data"
    .parameter "key"

    .prologue
    const/4 v9, 0x1

    const/4 v1, 0x0

    const/4 v5, -0x1

    .line 2303
    instance-of v3, p1, Landroid/widget/LinearLayout;

    if-eqz v3, :cond_1

    .line 2305
    :try_start_0
    const-string v1, "latestCommentsLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 2306
    move-object v0, p2

    check-cast v0, Ljava/util/HashMap;

    move-object v1, v0

    const-string v3, "list"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    .line 2307
    .local v2, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    move-object v0, p2

    check-cast v0, Ljava/util/HashMap;

    move-object v1, v0

    const-string v3, "i"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    .line 2308
    .local v4, i:I
    check-cast p2, Ljava/util/HashMap;

    .end local p2
    const-string v1, "pos"

    invoke-virtual {p2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    .line 2310
    .local v6, pos:I
    move-object v0, p1

    check-cast v0, Landroid/widget/LinearLayout;

    move-object v1, v0

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 2311
    if-ne v4, v5, :cond_2

    .line 2312
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$54(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 2313
    const v3, 0x7f030025

    const/4 v5, 0x0

    .line 2312
    invoke-virtual {v1, v3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    .line 2314
    .local v7, commentsLayout:Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$54(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/LayoutInflater;

    move-result-object v3

    invoke-static {v1, v2, v7, v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$84(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Ljava/util/List;Landroid/widget/LinearLayout;Landroid/view/LayoutInflater;)V

    .line 2315
    check-cast p1, Landroid/widget/LinearLayout;

    .end local p1
    invoke-virtual {p1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .end local v2           #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v4           #i:I
    .end local v6           #pos:I
    .end local v7           #commentsLayout:Landroid/widget/LinearLayout;
    :cond_0
    :goto_0
    move v1, v9

    .line 2341
    :cond_1
    return v1

    .line 2317
    .restart local v2       #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .restart local v4       #i:I
    .restart local v6       #pos:I
    .restart local p1
    :cond_2
    check-cast p1, Landroid/widget/LinearLayout;

    .end local p1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$47(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    const/4 v5, 0x1

    invoke-static/range {v1 .. v6}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$85(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Ljava/util/List;Ljava/util/HashMap;III)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 2335
    .end local v2           #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v4           #i:I
    .end local v6           #pos:I
    :catch_0
    move-exception v8

    .line 2337
    .local v8, e:Ljava/lang/Exception;
    invoke-virtual {v8}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 2320
    .end local v8           #e:Ljava/lang/Exception;
    .restart local p1
    .restart local p2
    :cond_3
    :try_start_1
    const-string v1, "hotCommentsLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 2321
    move-object v0, p2

    check-cast v0, Ljava/util/HashMap;

    move-object v1, v0

    const-string v3, "list"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    .line 2322
    .restart local v2       #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    move-object v0, p2

    check-cast v0, Ljava/util/HashMap;

    move-object v1, v0

    const-string v3, "i"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    .line 2323
    .restart local v4       #i:I
    check-cast p2, Ljava/util/HashMap;

    .end local p2
    const-string v1, "pos"

    invoke-virtual {p2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    .line 2325
    .restart local v6       #pos:I
    move-object v0, p1

    check-cast v0, Landroid/widget/LinearLayout;

    move-object v1, v0

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 2326
    if-ne v4, v5, :cond_4

    .line 2327
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$54(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 2328
    const v3, 0x7f030025

    const/4 v5, 0x0

    .line 2327
    invoke-virtual {v1, v3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    .line 2329
    .restart local v7       #commentsLayout:Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$54(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/LayoutInflater;

    move-result-object v3

    invoke-static {v1, v2, v7, v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$84(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Ljava/util/List;Landroid/widget/LinearLayout;Landroid/view/LayoutInflater;)V

    .line 2330
    check-cast p1, Landroid/widget/LinearLayout;

    .end local p1
    invoke-virtual {p1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_0

    .line 2332
    .end local v7           #commentsLayout:Landroid/widget/LinearLayout;
    .restart local p1
    :cond_4
    check-cast p1, Landroid/widget/LinearLayout;

    .end local p1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$LinearLayoutItem;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$46(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    const/4 v5, 0x0

    invoke-static/range {v1 .. v6}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$85(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Ljava/util/List;Ljava/util/HashMap;III)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method
